package org.cloud.myRuleConfig;


import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

public class RuleConfig01 {

    @Bean
    public IRule getIRuleRound() {
        // 轮询
        return new RoundRobinRule();
    }
}
